


<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    
    <meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
    <title>Coverage for /home/zjh/.virtualenvs/h4/lib/python2.7/site-packages/django/utils/lorem_ipsum.py: 29%</title>
    <link rel="stylesheet" href="style.css" type="text/css">
    
    <script type="text/javascript" src="jquery.min.js"></script>
    <script type="text/javascript" src="jquery.hotkeys.js"></script>
    <script type="text/javascript" src="jquery.isonscreen.js"></script>
    <script type="text/javascript" src="coverage_html.js"></script>
    <script type="text/javascript">
        jQuery(document).ready(coverage.pyfile_ready);
    </script>
</head>
<body class="pyfile">

<div id="header">
    <div class="content">
        <h1>Coverage for <b>/home/zjh/.virtualenvs/h4/lib/python2.7/site-packages/django/utils/lorem_ipsum.py</b> :
            <span class="pc_cov">29%</span>
        </h1>

        <img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />

        <h2 class="stats">
            31 statements &nbsp;
            <span class="run hide_run shortkey_r button_toggle_run">9 run</span>
            <span class="mis shortkey_m button_toggle_mis">22 missing</span>
            <span class="exc shortkey_x button_toggle_exc">0 excluded</span>

            
        </h2>
    </div>
</div>

<div class="help_panel">
    <img id="panel_icon" src="keybd_open.png" alt="Hide keyboard shortcuts" />
    <p class="legend">Hot-keys on this page</p>
    <div>
    <p class="keyhelp">
        <span class="key">r</span>
        <span class="key">m</span>
        <span class="key">x</span>
        <span class="key">p</span> &nbsp; toggle line displays
    </p>
    <p class="keyhelp">
        <span class="key">j</span>
        <span class="key">k</span> &nbsp; next/prev highlighted chunk
    </p>
    <p class="keyhelp">
        <span class="key">0</span> &nbsp; (zero) top of page
    </p>
    <p class="keyhelp">
        <span class="key">1</span> &nbsp; (one) first highlighted chunk
    </p>
    </div>
</div>

<div id="source">
    <table>
        <tr>
            <td class="linenos">
<p id="n1" class="pln"><a href="#n1">1</a></p>
<p id="n2" class="pln"><a href="#n2">2</a></p>
<p id="n3" class="pln"><a href="#n3">3</a></p>
<p id="n4" class="pln"><a href="#n4">4</a></p>
<p id="n5" class="stm run hide_run"><a href="#n5">5</a></p>
<p id="n6" class="pln"><a href="#n6">6</a></p>
<p id="n7" class="stm run hide_run"><a href="#n7">7</a></p>
<p id="n8" class="pln"><a href="#n8">8</a></p>
<p id="n9" class="stm run hide_run"><a href="#n9">9</a></p>
<p id="n10" class="pln"><a href="#n10">10</a></p>
<p id="n11" class="pln"><a href="#n11">11</a></p>
<p id="n12" class="pln"><a href="#n12">12</a></p>
<p id="n13" class="pln"><a href="#n13">13</a></p>
<p id="n14" class="pln"><a href="#n14">14</a></p>
<p id="n15" class="pln"><a href="#n15">15</a></p>
<p id="n16" class="pln"><a href="#n16">16</a></p>
<p id="n17" class="pln"><a href="#n17">17</a></p>
<p id="n18" class="pln"><a href="#n18">18</a></p>
<p id="n19" class="stm run hide_run"><a href="#n19">19</a></p>
<p id="n20" class="pln"><a href="#n20">20</a></p>
<p id="n21" class="pln"><a href="#n21">21</a></p>
<p id="n22" class="pln"><a href="#n22">22</a></p>
<p id="n23" class="pln"><a href="#n23">23</a></p>
<p id="n24" class="pln"><a href="#n24">24</a></p>
<p id="n25" class="pln"><a href="#n25">25</a></p>
<p id="n26" class="pln"><a href="#n26">26</a></p>
<p id="n27" class="pln"><a href="#n27">27</a></p>
<p id="n28" class="pln"><a href="#n28">28</a></p>
<p id="n29" class="pln"><a href="#n29">29</a></p>
<p id="n30" class="pln"><a href="#n30">30</a></p>
<p id="n31" class="pln"><a href="#n31">31</a></p>
<p id="n32" class="pln"><a href="#n32">32</a></p>
<p id="n33" class="pln"><a href="#n33">33</a></p>
<p id="n34" class="pln"><a href="#n34">34</a></p>
<p id="n35" class="pln"><a href="#n35">35</a></p>
<p id="n36" class="pln"><a href="#n36">36</a></p>
<p id="n37" class="pln"><a href="#n37">37</a></p>
<p id="n38" class="pln"><a href="#n38">38</a></p>
<p id="n39" class="pln"><a href="#n39">39</a></p>
<p id="n40" class="pln"><a href="#n40">40</a></p>
<p id="n41" class="pln"><a href="#n41">41</a></p>
<p id="n42" class="pln"><a href="#n42">42</a></p>
<p id="n43" class="pln"><a href="#n43">43</a></p>
<p id="n44" class="pln"><a href="#n44">44</a></p>
<p id="n45" class="pln"><a href="#n45">45</a></p>
<p id="n46" class="pln"><a href="#n46">46</a></p>
<p id="n47" class="pln"><a href="#n47">47</a></p>
<p id="n48" class="pln"><a href="#n48">48</a></p>
<p id="n49" class="stm run hide_run"><a href="#n49">49</a></p>
<p id="n50" class="pln"><a href="#n50">50</a></p>
<p id="n51" class="pln"><a href="#n51">51</a></p>
<p id="n52" class="pln"><a href="#n52">52</a></p>
<p id="n53" class="pln"><a href="#n53">53</a></p>
<p id="n54" class="stm run hide_run"><a href="#n54">54</a></p>
<p id="n55" class="pln"><a href="#n55">55</a></p>
<p id="n56" class="pln"><a href="#n56">56</a></p>
<p id="n57" class="pln"><a href="#n57">57</a></p>
<p id="n58" class="pln"><a href="#n58">58</a></p>
<p id="n59" class="pln"><a href="#n59">59</a></p>
<p id="n60" class="pln"><a href="#n60">60</a></p>
<p id="n61" class="pln"><a href="#n61">61</a></p>
<p id="n62" class="pln"><a href="#n62">62</a></p>
<p id="n63" class="stm mis"><a href="#n63">63</a></p>
<p id="n64" class="stm mis"><a href="#n64">64</a></p>
<p id="n65" class="pln"><a href="#n65">65</a></p>
<p id="n66" class="stm mis"><a href="#n66">66</a></p>
<p id="n67" class="pln"><a href="#n67">67</a></p>
<p id="n68" class="pln"><a href="#n68">68</a></p>
<p id="n69" class="stm run hide_run"><a href="#n69">69</a></p>
<p id="n70" class="pln"><a href="#n70">70</a></p>
<p id="n71" class="pln"><a href="#n71">71</a></p>
<p id="n72" class="pln"><a href="#n72">72</a></p>
<p id="n73" class="pln"><a href="#n73">73</a></p>
<p id="n74" class="pln"><a href="#n74">74</a></p>
<p id="n75" class="stm mis"><a href="#n75">75</a></p>
<p id="n76" class="pln"><a href="#n76">76</a></p>
<p id="n77" class="pln"><a href="#n77">77</a></p>
<p id="n78" class="stm run hide_run"><a href="#n78">78</a></p>
<p id="n79" class="pln"><a href="#n79">79</a></p>
<p id="n80" class="pln"><a href="#n80">80</a></p>
<p id="n81" class="pln"><a href="#n81">81</a></p>
<p id="n82" class="pln"><a href="#n82">82</a></p>
<p id="n83" class="pln"><a href="#n83">83</a></p>
<p id="n84" class="pln"><a href="#n84">84</a></p>
<p id="n85" class="pln"><a href="#n85">85</a></p>
<p id="n86" class="stm mis"><a href="#n86">86</a></p>
<p id="n87" class="stm mis"><a href="#n87">87</a></p>
<p id="n88" class="stm mis"><a href="#n88">88</a></p>
<p id="n89" class="stm mis"><a href="#n89">89</a></p>
<p id="n90" class="pln"><a href="#n90">90</a></p>
<p id="n91" class="stm mis"><a href="#n91">91</a></p>
<p id="n92" class="stm mis"><a href="#n92">92</a></p>
<p id="n93" class="pln"><a href="#n93">93</a></p>
<p id="n94" class="pln"><a href="#n94">94</a></p>
<p id="n95" class="stm run hide_run"><a href="#n95">95</a></p>
<p id="n96" class="pln"><a href="#n96">96</a></p>
<p id="n97" class="pln"><a href="#n97">97</a></p>
<p id="n98" class="pln"><a href="#n98">98</a></p>
<p id="n99" class="pln"><a href="#n99">99</a></p>
<p id="n100" class="pln"><a href="#n100">100</a></p>
<p id="n101" class="pln"><a href="#n101">101</a></p>
<p id="n102" class="stm mis"><a href="#n102">102</a></p>
<p id="n103" class="stm mis"><a href="#n103">103</a></p>
<p id="n104" class="pln"><a href="#n104">104</a></p>
<p id="n105" class="stm mis"><a href="#n105">105</a></p>
<p id="n106" class="stm mis"><a href="#n106">106</a></p>
<p id="n107" class="stm mis"><a href="#n107">107</a></p>
<p id="n108" class="stm mis"><a href="#n108">108</a></p>
<p id="n109" class="stm mis"><a href="#n109">109</a></p>
<p id="n110" class="stm mis"><a href="#n110">110</a></p>
<p id="n111" class="stm mis"><a href="#n111">111</a></p>
<p id="n112" class="stm mis"><a href="#n112">112</a></p>
<p id="n113" class="pln"><a href="#n113">113</a></p>
<p id="n114" class="stm mis"><a href="#n114">114</a></p>
<p id="n115" class="stm mis"><a href="#n115">115</a></p>

            </td>
            <td class="text">
<p id="t1" class="pln"><span class="str">"""</span><span class="strut">&nbsp;</span></p>
<p id="t2" class="pln"><span class="str">Utility functions for generating "lorem ipsum" Latin text.</span><span class="strut">&nbsp;</span></p>
<p id="t3" class="pln"><span class="str">"""</span><span class="strut">&nbsp;</span></p>
<p id="t4" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t5" class="stm run hide_run"><span class="key">from</span> <span class="nam">__future__</span> <span class="key">import</span> <span class="nam">unicode_literals</span><span class="strut">&nbsp;</span></p>
<p id="t6" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t7" class="stm run hide_run"><span class="key">import</span> <span class="nam">random</span><span class="strut">&nbsp;</span></p>
<p id="t8" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t9" class="stm run hide_run"><span class="nam">COMMON_P</span> <span class="op">=</span> <span class="op">(</span><span class="strut">&nbsp;</span></p>
<p id="t10" class="pln">    <span class="str">'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod '</span><span class="strut">&nbsp;</span></p>
<p id="t11" class="pln">    <span class="str">'tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim '</span><span class="strut">&nbsp;</span></p>
<p id="t12" class="pln">    <span class="str">'veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea '</span><span class="strut">&nbsp;</span></p>
<p id="t13" class="pln">    <span class="str">'commodo consequat. Duis aute irure dolor in reprehenderit in voluptate '</span><span class="strut">&nbsp;</span></p>
<p id="t14" class="pln">    <span class="str">'velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint '</span><span class="strut">&nbsp;</span></p>
<p id="t15" class="pln">    <span class="str">'occaecat cupidatat non proident, sunt in culpa qui officia deserunt '</span><span class="strut">&nbsp;</span></p>
<p id="t16" class="pln">    <span class="str">'mollit anim id est laborum.'</span><span class="strut">&nbsp;</span></p>
<p id="t17" class="pln"><span class="op">)</span><span class="strut">&nbsp;</span></p>
<p id="t18" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t19" class="stm run hide_run"><span class="nam">WORDS</span> <span class="op">=</span> <span class="op">(</span><span class="str">'exercitationem'</span><span class="op">,</span> <span class="str">'perferendis'</span><span class="op">,</span> <span class="str">'perspiciatis'</span><span class="op">,</span> <span class="str">'laborum'</span><span class="op">,</span> <span class="str">'eveniet'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t20" class="pln">        <span class="str">'sunt'</span><span class="op">,</span> <span class="str">'iure'</span><span class="op">,</span> <span class="str">'nam'</span><span class="op">,</span> <span class="str">'nobis'</span><span class="op">,</span> <span class="str">'eum'</span><span class="op">,</span> <span class="str">'cum'</span><span class="op">,</span> <span class="str">'officiis'</span><span class="op">,</span> <span class="str">'excepturi'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t21" class="pln">        <span class="str">'odio'</span><span class="op">,</span> <span class="str">'consectetur'</span><span class="op">,</span> <span class="str">'quasi'</span><span class="op">,</span> <span class="str">'aut'</span><span class="op">,</span> <span class="str">'quisquam'</span><span class="op">,</span> <span class="str">'vel'</span><span class="op">,</span> <span class="str">'eligendi'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t22" class="pln">        <span class="str">'itaque'</span><span class="op">,</span> <span class="str">'non'</span><span class="op">,</span> <span class="str">'odit'</span><span class="op">,</span> <span class="str">'tempore'</span><span class="op">,</span> <span class="str">'quaerat'</span><span class="op">,</span> <span class="str">'dignissimos'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t23" class="pln">        <span class="str">'facilis'</span><span class="op">,</span> <span class="str">'neque'</span><span class="op">,</span> <span class="str">'nihil'</span><span class="op">,</span> <span class="str">'expedita'</span><span class="op">,</span> <span class="str">'vitae'</span><span class="op">,</span> <span class="str">'vero'</span><span class="op">,</span> <span class="str">'ipsum'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t24" class="pln">        <span class="str">'nisi'</span><span class="op">,</span> <span class="str">'animi'</span><span class="op">,</span> <span class="str">'cumque'</span><span class="op">,</span> <span class="str">'pariatur'</span><span class="op">,</span> <span class="str">'velit'</span><span class="op">,</span> <span class="str">'modi'</span><span class="op">,</span> <span class="str">'natus'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t25" class="pln">        <span class="str">'iusto'</span><span class="op">,</span> <span class="str">'eaque'</span><span class="op">,</span> <span class="str">'sequi'</span><span class="op">,</span> <span class="str">'illo'</span><span class="op">,</span> <span class="str">'sed'</span><span class="op">,</span> <span class="str">'ex'</span><span class="op">,</span> <span class="str">'et'</span><span class="op">,</span> <span class="str">'voluptatibus'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t26" class="pln">        <span class="str">'tempora'</span><span class="op">,</span> <span class="str">'veritatis'</span><span class="op">,</span> <span class="str">'ratione'</span><span class="op">,</span> <span class="str">'assumenda'</span><span class="op">,</span> <span class="str">'incidunt'</span><span class="op">,</span> <span class="str">'nostrum'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t27" class="pln">        <span class="str">'placeat'</span><span class="op">,</span> <span class="str">'aliquid'</span><span class="op">,</span> <span class="str">'fuga'</span><span class="op">,</span> <span class="str">'provident'</span><span class="op">,</span> <span class="str">'praesentium'</span><span class="op">,</span> <span class="str">'rem'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t28" class="pln">        <span class="str">'necessitatibus'</span><span class="op">,</span> <span class="str">'suscipit'</span><span class="op">,</span> <span class="str">'adipisci'</span><span class="op">,</span> <span class="str">'quidem'</span><span class="op">,</span> <span class="str">'possimus'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t29" class="pln">        <span class="str">'voluptas'</span><span class="op">,</span> <span class="str">'debitis'</span><span class="op">,</span> <span class="str">'sint'</span><span class="op">,</span> <span class="str">'accusantium'</span><span class="op">,</span> <span class="str">'unde'</span><span class="op">,</span> <span class="str">'sapiente'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t30" class="pln">        <span class="str">'voluptate'</span><span class="op">,</span> <span class="str">'qui'</span><span class="op">,</span> <span class="str">'aspernatur'</span><span class="op">,</span> <span class="str">'laudantium'</span><span class="op">,</span> <span class="str">'soluta'</span><span class="op">,</span> <span class="str">'amet'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t31" class="pln">        <span class="str">'quo'</span><span class="op">,</span> <span class="str">'aliquam'</span><span class="op">,</span> <span class="str">'saepe'</span><span class="op">,</span> <span class="str">'culpa'</span><span class="op">,</span> <span class="str">'libero'</span><span class="op">,</span> <span class="str">'ipsa'</span><span class="op">,</span> <span class="str">'dicta'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t32" class="pln">        <span class="str">'reiciendis'</span><span class="op">,</span> <span class="str">'nesciunt'</span><span class="op">,</span> <span class="str">'doloribus'</span><span class="op">,</span> <span class="str">'autem'</span><span class="op">,</span> <span class="str">'impedit'</span><span class="op">,</span> <span class="str">'minima'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t33" class="pln">        <span class="str">'maiores'</span><span class="op">,</span> <span class="str">'repudiandae'</span><span class="op">,</span> <span class="str">'ipsam'</span><span class="op">,</span> <span class="str">'obcaecati'</span><span class="op">,</span> <span class="str">'ullam'</span><span class="op">,</span> <span class="str">'enim'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t34" class="pln">        <span class="str">'totam'</span><span class="op">,</span> <span class="str">'delectus'</span><span class="op">,</span> <span class="str">'ducimus'</span><span class="op">,</span> <span class="str">'quis'</span><span class="op">,</span> <span class="str">'voluptates'</span><span class="op">,</span> <span class="str">'dolores'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t35" class="pln">        <span class="str">'molestiae'</span><span class="op">,</span> <span class="str">'harum'</span><span class="op">,</span> <span class="str">'dolorem'</span><span class="op">,</span> <span class="str">'quia'</span><span class="op">,</span> <span class="str">'voluptatem'</span><span class="op">,</span> <span class="str">'molestias'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t36" class="pln">        <span class="str">'magni'</span><span class="op">,</span> <span class="str">'distinctio'</span><span class="op">,</span> <span class="str">'omnis'</span><span class="op">,</span> <span class="str">'illum'</span><span class="op">,</span> <span class="str">'dolorum'</span><span class="op">,</span> <span class="str">'voluptatum'</span><span class="op">,</span> <span class="str">'ea'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t37" class="pln">        <span class="str">'quas'</span><span class="op">,</span> <span class="str">'quam'</span><span class="op">,</span> <span class="str">'corporis'</span><span class="op">,</span> <span class="str">'quae'</span><span class="op">,</span> <span class="str">'blanditiis'</span><span class="op">,</span> <span class="str">'atque'</span><span class="op">,</span> <span class="str">'deserunt'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t38" class="pln">        <span class="str">'laboriosam'</span><span class="op">,</span> <span class="str">'earum'</span><span class="op">,</span> <span class="str">'consequuntur'</span><span class="op">,</span> <span class="str">'hic'</span><span class="op">,</span> <span class="str">'cupiditate'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t39" class="pln">        <span class="str">'quibusdam'</span><span class="op">,</span> <span class="str">'accusamus'</span><span class="op">,</span> <span class="str">'ut'</span><span class="op">,</span> <span class="str">'rerum'</span><span class="op">,</span> <span class="str">'error'</span><span class="op">,</span> <span class="str">'minus'</span><span class="op">,</span> <span class="str">'eius'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t40" class="pln">        <span class="str">'ab'</span><span class="op">,</span> <span class="str">'ad'</span><span class="op">,</span> <span class="str">'nemo'</span><span class="op">,</span> <span class="str">'fugit'</span><span class="op">,</span> <span class="str">'officia'</span><span class="op">,</span> <span class="str">'at'</span><span class="op">,</span> <span class="str">'in'</span><span class="op">,</span> <span class="str">'id'</span><span class="op">,</span> <span class="str">'quos'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t41" class="pln">        <span class="str">'reprehenderit'</span><span class="op">,</span> <span class="str">'numquam'</span><span class="op">,</span> <span class="str">'iste'</span><span class="op">,</span> <span class="str">'fugiat'</span><span class="op">,</span> <span class="str">'sit'</span><span class="op">,</span> <span class="str">'inventore'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t42" class="pln">        <span class="str">'beatae'</span><span class="op">,</span> <span class="str">'repellendus'</span><span class="op">,</span> <span class="str">'magnam'</span><span class="op">,</span> <span class="str">'recusandae'</span><span class="op">,</span> <span class="str">'quod'</span><span class="op">,</span> <span class="str">'explicabo'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t43" class="pln">        <span class="str">'doloremque'</span><span class="op">,</span> <span class="str">'aperiam'</span><span class="op">,</span> <span class="str">'consequatur'</span><span class="op">,</span> <span class="str">'asperiores'</span><span class="op">,</span> <span class="str">'commodi'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t44" class="pln">        <span class="str">'optio'</span><span class="op">,</span> <span class="str">'dolor'</span><span class="op">,</span> <span class="str">'labore'</span><span class="op">,</span> <span class="str">'temporibus'</span><span class="op">,</span> <span class="str">'repellat'</span><span class="op">,</span> <span class="str">'veniam'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t45" class="pln">        <span class="str">'architecto'</span><span class="op">,</span> <span class="str">'est'</span><span class="op">,</span> <span class="str">'esse'</span><span class="op">,</span> <span class="str">'mollitia'</span><span class="op">,</span> <span class="str">'nulla'</span><span class="op">,</span> <span class="str">'a'</span><span class="op">,</span> <span class="str">'similique'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t46" class="pln">        <span class="str">'eos'</span><span class="op">,</span> <span class="str">'alias'</span><span class="op">,</span> <span class="str">'dolore'</span><span class="op">,</span> <span class="str">'tenetur'</span><span class="op">,</span> <span class="str">'deleniti'</span><span class="op">,</span> <span class="str">'porro'</span><span class="op">,</span> <span class="str">'facere'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t47" class="pln">        <span class="str">'maxime'</span><span class="op">,</span> <span class="str">'corrupti'</span><span class="op">)</span><span class="strut">&nbsp;</span></p>
<p id="t48" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t49" class="stm run hide_run"><span class="nam">COMMON_WORDS</span> <span class="op">=</span> <span class="op">(</span><span class="str">'lorem'</span><span class="op">,</span> <span class="str">'ipsum'</span><span class="op">,</span> <span class="str">'dolor'</span><span class="op">,</span> <span class="str">'sit'</span><span class="op">,</span> <span class="str">'amet'</span><span class="op">,</span> <span class="str">'consectetur'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t50" class="pln">        <span class="str">'adipisicing'</span><span class="op">,</span> <span class="str">'elit'</span><span class="op">,</span> <span class="str">'sed'</span><span class="op">,</span> <span class="str">'do'</span><span class="op">,</span> <span class="str">'eiusmod'</span><span class="op">,</span> <span class="str">'tempor'</span><span class="op">,</span> <span class="str">'incididunt'</span><span class="op">,</span><span class="strut">&nbsp;</span></p>
<p id="t51" class="pln">        <span class="str">'ut'</span><span class="op">,</span> <span class="str">'labore'</span><span class="op">,</span> <span class="str">'et'</span><span class="op">,</span> <span class="str">'dolore'</span><span class="op">,</span> <span class="str">'magna'</span><span class="op">,</span> <span class="str">'aliqua'</span><span class="op">)</span><span class="strut">&nbsp;</span></p>
<p id="t52" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t53" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t54" class="stm run hide_run"><span class="key">def</span> <span class="nam">sentence</span><span class="op">(</span><span class="op">)</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
<p id="t55" class="pln">    <span class="str">"""</span><span class="strut">&nbsp;</span></p>
<p id="t56" class="pln"><span class="str">    Returns a randomly generated sentence of lorem ipsum text.</span><span class="strut">&nbsp;</span></p>
<p id="t57" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t58" class="pln"><span class="str">    The first word is capitalized, and the sentence ends in either a period or</span><span class="strut">&nbsp;</span></p>
<p id="t59" class="pln"><span class="str">    question mark. Commas are added at random.</span><span class="strut">&nbsp;</span></p>
<p id="t60" class="pln"><span class="str">    """</span><span class="strut">&nbsp;</span></p>
<p id="t61" class="pln">    <span class="com"># Determine the number of comma-separated sections and number of words in</span><span class="strut">&nbsp;</span></p>
<p id="t62" class="pln">    <span class="com"># each section for this sentence.</span><span class="strut">&nbsp;</span></p>
<p id="t63" class="stm mis">    <span class="nam">sections</span> <span class="op">=</span> <span class="op">[</span><span class="str">' '</span><span class="op">.</span><span class="nam">join</span><span class="op">(</span><span class="nam">random</span><span class="op">.</span><span class="nam">sample</span><span class="op">(</span><span class="nam">WORDS</span><span class="op">,</span> <span class="nam">random</span><span class="op">.</span><span class="nam">randint</span><span class="op">(</span><span class="num">3</span><span class="op">,</span> <span class="num">12</span><span class="op">)</span><span class="op">)</span><span class="op">)</span> <span class="key">for</span> <span class="nam">i</span> <span class="key">in</span> <span class="nam">range</span><span class="op">(</span><span class="nam">random</span><span class="op">.</span><span class="nam">randint</span><span class="op">(</span><span class="num">1</span><span class="op">,</span> <span class="num">5</span><span class="op">)</span><span class="op">)</span><span class="op">]</span><span class="strut">&nbsp;</span></p>
<p id="t64" class="stm mis">    <span class="nam">s</span> <span class="op">=</span> <span class="str">', '</span><span class="op">.</span><span class="nam">join</span><span class="op">(</span><span class="nam">sections</span><span class="op">)</span><span class="strut">&nbsp;</span></p>
<p id="t65" class="pln">    <span class="com"># Convert to sentence case and add end punctuation.</span><span class="strut">&nbsp;</span></p>
<p id="t66" class="stm mis">    <span class="key">return</span> <span class="str">'%s%s%s'</span> <span class="op">%</span> <span class="op">(</span><span class="nam">s</span><span class="op">[</span><span class="num">0</span><span class="op">]</span><span class="op">.</span><span class="nam">upper</span><span class="op">(</span><span class="op">)</span><span class="op">,</span> <span class="nam">s</span><span class="op">[</span><span class="num">1</span><span class="op">:</span><span class="op">]</span><span class="op">,</span> <span class="nam">random</span><span class="op">.</span><span class="nam">choice</span><span class="op">(</span><span class="str">'?.'</span><span class="op">)</span><span class="op">)</span><span class="strut">&nbsp;</span></p>
<p id="t67" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t68" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t69" class="stm run hide_run"><span class="key">def</span> <span class="nam">paragraph</span><span class="op">(</span><span class="op">)</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
<p id="t70" class="pln">    <span class="str">"""</span><span class="strut">&nbsp;</span></p>
<p id="t71" class="pln"><span class="str">    Returns a randomly generated paragraph of lorem ipsum text.</span><span class="strut">&nbsp;</span></p>
<p id="t72" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t73" class="pln"><span class="str">    The paragraph consists of between 1 and 4 sentences, inclusive.</span><span class="strut">&nbsp;</span></p>
<p id="t74" class="pln"><span class="str">    """</span><span class="strut">&nbsp;</span></p>
<p id="t75" class="stm mis">    <span class="key">return</span> <span class="str">' '</span><span class="op">.</span><span class="nam">join</span><span class="op">(</span><span class="nam">sentence</span><span class="op">(</span><span class="op">)</span> <span class="key">for</span> <span class="nam">i</span> <span class="key">in</span> <span class="nam">range</span><span class="op">(</span><span class="nam">random</span><span class="op">.</span><span class="nam">randint</span><span class="op">(</span><span class="num">1</span><span class="op">,</span> <span class="num">4</span><span class="op">)</span><span class="op">)</span><span class="op">)</span><span class="strut">&nbsp;</span></p>
<p id="t76" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t77" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t78" class="stm run hide_run"><span class="key">def</span> <span class="nam">paragraphs</span><span class="op">(</span><span class="nam">count</span><span class="op">,</span> <span class="nam">common</span><span class="op">=</span><span class="nam">True</span><span class="op">)</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
<p id="t79" class="pln">    <span class="str">"""</span><span class="strut">&nbsp;</span></p>
<p id="t80" class="pln"><span class="str">    Returns a list of paragraphs as returned by paragraph().</span><span class="strut">&nbsp;</span></p>
<p id="t81" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t82" class="pln"><span class="str">    If `common` is True, then the first paragraph will be the standard</span><span class="strut">&nbsp;</span></p>
<p id="t83" class="pln"><span class="str">    'lorem ipsum' paragraph. Otherwise, the first paragraph will be random</span><span class="strut">&nbsp;</span></p>
<p id="t84" class="pln"><span class="str">    Latin text. Either way, subsequent paragraphs will be random Latin text.</span><span class="strut">&nbsp;</span></p>
<p id="t85" class="pln"><span class="str">    """</span><span class="strut">&nbsp;</span></p>
<p id="t86" class="stm mis">    <span class="nam">paras</span> <span class="op">=</span> <span class="op">[</span><span class="op">]</span><span class="strut">&nbsp;</span></p>
<p id="t87" class="stm mis">    <span class="key">for</span> <span class="nam">i</span> <span class="key">in</span> <span class="nam">range</span><span class="op">(</span><span class="nam">count</span><span class="op">)</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
<p id="t88" class="stm mis">        <span class="key">if</span> <span class="nam">common</span> <span class="key">and</span> <span class="nam">i</span> <span class="op">==</span> <span class="num">0</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
<p id="t89" class="stm mis">            <span class="nam">paras</span><span class="op">.</span><span class="nam">append</span><span class="op">(</span><span class="nam">COMMON_P</span><span class="op">)</span><span class="strut">&nbsp;</span></p>
<p id="t90" class="pln">        <span class="key">else</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
<p id="t91" class="stm mis">            <span class="nam">paras</span><span class="op">.</span><span class="nam">append</span><span class="op">(</span><span class="nam">paragraph</span><span class="op">(</span><span class="op">)</span><span class="op">)</span><span class="strut">&nbsp;</span></p>
<p id="t92" class="stm mis">    <span class="key">return</span> <span class="nam">paras</span><span class="strut">&nbsp;</span></p>
<p id="t93" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t94" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t95" class="stm run hide_run"><span class="key">def</span> <span class="nam">words</span><span class="op">(</span><span class="nam">count</span><span class="op">,</span> <span class="nam">common</span><span class="op">=</span><span class="nam">True</span><span class="op">)</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
<p id="t96" class="pln">    <span class="str">"""</span><span class="strut">&nbsp;</span></p>
<p id="t97" class="pln"><span class="str">    Returns a string of `count` lorem ipsum words separated by a single space.</span><span class="strut">&nbsp;</span></p>
<p id="t98" class="pln"><span class="strut">&nbsp;</span></p>
<p id="t99" class="pln"><span class="str">    If `common` is True, then the first 19 words will be the standard</span><span class="strut">&nbsp;</span></p>
<p id="t100" class="pln"><span class="str">    'lorem ipsum' words. Otherwise, all words will be selected randomly.</span><span class="strut">&nbsp;</span></p>
<p id="t101" class="pln"><span class="str">    """</span><span class="strut">&nbsp;</span></p>
<p id="t102" class="stm mis">    <span class="key">if</span> <span class="nam">common</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
<p id="t103" class="stm mis">        <span class="nam">word_list</span> <span class="op">=</span> <span class="nam">list</span><span class="op">(</span><span class="nam">COMMON_WORDS</span><span class="op">)</span><span class="strut">&nbsp;</span></p>
<p id="t104" class="pln">    <span class="key">else</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
<p id="t105" class="stm mis">        <span class="nam">word_list</span> <span class="op">=</span> <span class="op">[</span><span class="op">]</span><span class="strut">&nbsp;</span></p>
<p id="t106" class="stm mis">    <span class="nam">c</span> <span class="op">=</span> <span class="nam">len</span><span class="op">(</span><span class="nam">word_list</span><span class="op">)</span><span class="strut">&nbsp;</span></p>
<p id="t107" class="stm mis">    <span class="key">if</span> <span class="nam">count</span> <span class="op">></span> <span class="nam">c</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
<p id="t108" class="stm mis">        <span class="nam">count</span> <span class="op">-=</span> <span class="nam">c</span><span class="strut">&nbsp;</span></p>
<p id="t109" class="stm mis">        <span class="key">while</span> <span class="nam">count</span> <span class="op">></span> <span class="num">0</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
<p id="t110" class="stm mis">            <span class="nam">c</span> <span class="op">=</span> <span class="nam">min</span><span class="op">(</span><span class="nam">count</span><span class="op">,</span> <span class="nam">len</span><span class="op">(</span><span class="nam">WORDS</span><span class="op">)</span><span class="op">)</span><span class="strut">&nbsp;</span></p>
<p id="t111" class="stm mis">            <span class="nam">count</span> <span class="op">-=</span> <span class="nam">c</span><span class="strut">&nbsp;</span></p>
<p id="t112" class="stm mis">            <span class="nam">word_list</span> <span class="op">+=</span> <span class="nam">random</span><span class="op">.</span><span class="nam">sample</span><span class="op">(</span><span class="nam">WORDS</span><span class="op">,</span> <span class="nam">c</span><span class="op">)</span><span class="strut">&nbsp;</span></p>
<p id="t113" class="pln">    <span class="key">else</span><span class="op">:</span><span class="strut">&nbsp;</span></p>
<p id="t114" class="stm mis">        <span class="nam">word_list</span> <span class="op">=</span> <span class="nam">word_list</span><span class="op">[</span><span class="op">:</span><span class="nam">count</span><span class="op">]</span><span class="strut">&nbsp;</span></p>
<p id="t115" class="stm mis">    <span class="key">return</span> <span class="str">' '</span><span class="op">.</span><span class="nam">join</span><span class="op">(</span><span class="nam">word_list</span><span class="op">)</span><span class="strut">&nbsp;</span></p>

            </td>
        </tr>
    </table>
</div>

<div id="footer">
    <div class="content">
        <p>
            <a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v4.4.2</a>,
            created at 2017-12-30 20:26
        </p>
    </div>
</div>

</body>
</html>
